package com.project;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
    @RequestMapping("/test")
    public String testRequest(String name){
        System.out.println("执行应用控制器方法，参数name为"+name);
       //重定向到指定页面
        return "redirect:/html/info.html";
    }
}